Fix static-compiler when CC includes args
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 14 Feb 2018 21:03:18 +0000 (21:03 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 14 Feb 2018 21:09:46 +0000 (21:09 +0000)
Ensure arguments are quoted so that if you include args in CC that
they're handled as a whole.

Closes: #1454
Approved by: cgwalters

configure.ac

index 6c19e0411c5b1e7d07163281621fe8e57c75d088..34a6d0bbea77ea18cff6decd4523feda3f9b2a23 100644 (file)
@@ -519,7 +519,7 @@ AC_ARG_WITH(static-compiler,
             AS_HELP_STRING([--with-static-compiler],
                            [Use the given compiler to build ostree-prepare-root statically linked (default: no)]),,
               [with_static_compiler=no])
-AM_CONDITIONAL(BUILDOPT_USE_STATIC_COMPILER, test x$with_static_compiler != xno)
+AM_CONDITIONAL(BUILDOPT_USE_STATIC_COMPILER, test "x$with_static_compiler" != xno)
 AC_SUBST(STATIC_COMPILER, $with_static_compiler)
 
 dnl for tests (but we can't use asan with gjs or any introspection,